﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NVSecurity.Models;
namespace NVSecurity.Controllers
{
    public class RecruitmentController : Controller
    {
        NVSecurityEntities db = new NVSecurityEntities();
        //
        // GET: /Recruitment/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult GetRecruitmentList()
        {
            var recruitmentList = db.Recruitments.ToList();
            return View(recruitmentList);
        }
        public ActionResult Detail(int id)
        {
            var recruitment = db.Recruitments.Find(id);
            return View(recruitment);
        }

    }
}
